{extend name="base/form_base" /}
{block name="style"}
<style type="text/css">

</style>
{/block}
{block name="content"}
<div class="layui-fluid">
<form class="layui-form" id='edit_form' onsubmit="return false">
<!--   <blockquote class="layui-elem-quote"></blockquote> -->
  <div class="layui-row">
    <div class="layui-form-item">
        <label class="layui-form-label">个人业绩：</label>
        <div class="layui-input-block">
          <input type="text" class="layui-input" value="{$sef}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">总业绩：</label>
        <div class="layui-input-block">
          <input type="text" class="layui-input" value="{$total}" readonly="readonly">
        </div>
    </div>

    <input type="hidden" name="uid" value="{$uid}">
    <!-- <div class="layui-input-block" style="width: 80px">
      <button class="layui-btn" onclick="ajax()" lay-filter="formDemo">确定 </button>
    </div> -->
  </div>
</form>
</div>  
{/block}
{block name="script"}
<script type="text/javascript">
  function ajax(){
    var post_data = $('#edit_form').serialize();
    var index = layer.msg('正在拼命处理...' , {
          icon: 16 ,
          shade: 0.6 ,
          time: 0 ,
        });
    $.ajax({
            url:"{:url('admin/User/tdyj')}",
            type:"POST",
            data:post_data,
            success:function(ret){
                if (ret.code == 0) {
                  layer.msg('修改成功');
                  location.reload();
                  // parent.$(".layui-laypage-btn")[0].click();
                }
                if (ret.code == 1) {
                    layer.msg(ret.msg);
                }
            }
        });
  }
</script> 
{/block}